package com.acme.javaschool.intense.sems.sem3logging;

public enum Level {
    ERROR(3, "[ERROR]"),
    INFO(2, "[INFO]"),
    DEBUG(1, "[DEBUG]"),
    OFF(0, "[OFF]");

    public final int severity;
    private final String stringName;

    Level(int importance, String stringName) {
        this.severity = importance;
        this.stringName = stringName;
    }

    public String toString() {
        return stringName;
    }
}
